package Model;

public class Student extends Person {

    private int studentId;
    private int studentNo;
    private Team teamId;

    public Student() {
    }

    public Student(int studentId, int studentNo, Team teamId) {
        this.studentId = studentId;
        this.studentNo = studentNo;
        this.teamId = teamId;
    }

    public Student(int id, String name, String username, String password, String address, String email, int phoneNo, String type, int studentId, int studentNo, Team teamId) {
        super(id, name, username, password, address, email, phoneNo, type);
        this.studentId = studentId;
        this.studentNo = studentNo;
        this.teamId = teamId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(int studentNo) {
        this.studentNo = studentNo;
    }

    public Team getTeamId() {
        return teamId;
    }

    public void setTeamId(Team teamId) {
        this.teamId = teamId;
    }

    @Override
    public String toString() {
        return getName();
    }
}
